package com.kygeng.namenode;

/**
 * @Title: DataNodeInfo
 * @Author: kygeng
 * @Package: com.kygeng.namenode
 * @Date: 2025/3/2 18:14
 * @Description: 从节点基础信息
 */
public class DataNodeInfo {

    private String ip;
    private String hostname;
    private long latestHeartbeatTime;

    public DataNodeInfo(String ip, String hostname) {
        this.ip = ip;
        this.hostname = hostname;
    }

    public String getIp() {
        return ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getHostname() {
        return hostname;
    }
    public void setHostname(String hostname) {
        this.hostname = hostname;
    }
    public long getLatestHeartbeatTime() {
        return latestHeartbeatTime;
    }
    public void setLatestHeartbeatTime(long latestHeartbeatTime) {
        this.latestHeartbeatTime = latestHeartbeatTime;
    }

}
